package com.credithc.customers.api.configure;


import com.credithc.baseserv.core.codes.CoreCodes;
import com.credithc.baseserv.core.message.MessageFactory;
import com.credithc.baseserv.core.message.impl.MessageFactoryImpl;
import com.credithc.customers.base.codes.CustomerCodes;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhukai
 */
@Configuration
public class CustomerApiConfigure {

    @Bean
    public MessageFactory messageFactory() {
        MessageFactory messageFactory = new MessageFactoryImpl();
        messageFactory.addCodesClass(CustomerCodes.class).addCodesClass(CoreCodes.class);
        return messageFactory;
    }

}
